import Vue from "vue";
import Vuex from "vuex";

import * as user from "@/store/modules/user.js";
// user.state={user:{id....}}
import * as blogpost from "@/store/modules/blogpost.js";

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    user,
    blogpost,
  },
  state: {
    categories: [
      "sentiment",
      "nature",
      "pets",
      "housing",
      "education",
      "food",
      "community",
    ],
  },
});
